package com.chance.cc.crawler.development.command.script.du;

import com.chance.cc.crawler.core.downloader.HttpPage;
import com.chance.cc.crawler.development.command.script.ScriptCommand;

import static com.chance.cc.crawler.development.command.publish.douyin.DYPublishCrawlerJob.metaServerIP;
import static com.chance.cc.crawler.development.command.publish.douyin.DYPublishCrawlerJob.metaServerPort;

/**
 * @author bx
 * @date 2020/12/7 0007 10:54
 */
public class DUPhoneCrawlerScript {

    private static String domainId = "du_app";

    private static ScriptCommand scriptCommand = new ScriptCommand(metaServerIP,metaServerPort);

    public static void main(String[] args) {
        publishCrawlerPhoneScript();
    }

    public static void publishCrawlerPhoneScript(){
        HttpPage page = scriptCommand.publishScheduleScript2Consul(domainId);
        System.out.println("发布采集脚本：" + page.getRawText());
    }
}
